package com.kasax.ipcbus.hermes;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.kasax.ipcbus.corel.Hermes;

public class ServerActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        setTitle("服务端界面");

        Hermes.getDefault().init(this);
        Hermes.getDefault().register(UserManager.class);
        UserManager.getInstance().setStudent(new Student("test1", 22, 2));
    }

    public void handleGoClientPage(View view) {
        startActivity(new Intent(this, ClientActivity.class));
    }
}